*{
    margin: 0px;
    padding: 0px;
}
.box{
    width: 200px;
    height: 200px;
    margin: 200px auto;
    position: relative;
    transform: rotateX(45deg) rotateY(45deg);
    transform-style: preserve-3d;
    animation: move 10s infinite linear;
}
.box img{
    width: 200px;
    height: 200px;
    vertical-align: bottom;
    opacity:0.9;
}
.box div{
    position: absolute;
    transition: all 3s;
}
.box div:nth-child(1){
    transform: rotateY(90deg) translateZ(100px);
}
.box div:nth-child(2){
    transform: rotateY(-90deg) translateZ(100px);
}
.box div:nth-child(3){
    transform: rotateX(90deg) translateZ(100px);
}
.box div:nth-child(4){
    transform: rotateX(-90deg) translateZ(100px);
}
.box div:nth-child(5){
    transform: rotateY(180deg) translateZ(100px);
}
.box div:nth-child(6){
    transform: translateZ(100px);
}
@keyframes move{
    from{
        transform: rotateX(0deg) rotateY(0deg);
    }
    to{
        transform: rotateX(360deg) rotateY(360deg);
    }
}